import { deleted, get, post } from "@/api/client";

/**
 * 收藏
 * @param move
 * @returns {*}
 */
export function addCollection(move) {
	return post("/mycollection", move);
}

/**
 * 取消收藏
 * @param id
 * @returns {*}
 */
export function unCollection(id) {
	return deleted("/mycollection", { id });
}

/**
 * 获取收藏的视频
 * @param page
 * @param size
 * @returns {*}
 */
export function getSelfCollect(page, size) {
	return get("/mycollection", { page, size });
}
